Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seb/add 2decomp iface CMakeLists #45

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

cayrols
Copy link
Collaborator

@cayrols cayrols commented Apr 25, 2022

This Pull Request addresses the creation of the 2decomp&FFT library interface.

We create a CMakeLists.txt file, that downloads the source and compiles the library.
The created library and the header file will be located in the build folder.

Note: We remove 2decomp as a submodule.

@cayrols
Copy link
Collaborator Author

cayrols commented Apr 25, 2022

UPDATE:
I integrated the call to this CMakeLists.txt into the main one so that it builds the interface.

On Saturn, it works with the following modules fftw/3.3.10/gcc-7.3.0-ujnq cmake/3.22.2/gcc-7.3.0-wes6 and a classic install to 2decomp.

Then, the compilation from the root of fiber:

mkdir build
cd build
make -DMPI_DIR=$ICL_OPENMPI_ROOT -DFIBER_ENABLE_2DECOMP=ON -DFFTW_PATH=$ICL_FFTW_ROOT -DDECOMPFFT_ROOT=~/workspace/2decomp_fft-1.5.847 -DFIBER_FFT_LIB_DIRS="~/workspace/2decomp_fft-1.5.847/lib;${ICL_FFTW_ROOT}/lib;${ICL_OPENMPI_ROOT}/lib" -DFIBER_FFT_INCLUDE_DIRS="~/workspace/2decomp_fft-1.5.847/include;${ICL_FFTW_ROOT}/include" ..

Then, as stated here, using these modifications the execution works:

mpirun -n 2 ./benchmarks/test3D_CPU_C2C decomp2d

Feel free to comment this.

@G-Ragghianti G-Ragghianti self-requested a review April 26, 2022 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant